package com.itheima.day15.第二题;

public class Box {
    private int count;
    private boolean flag;

    public Box() {
        this(15,false);
    }

    public Box(int count, boolean flag) {
        this.count = count;
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void countSubtract(){
        count--;
    }
}
